package com.study.springmvc.controller;

import com.study.springmvc.anno.Controller;
import com.study.springmvc.anno.RequestMapping;
import com.study.springmvc.anno.Security;

/**
 * @author lupengwei 2021/5/16 10:16
 */
@Controller
public class TestController {
    
    
    /**
     * 权限验证
     */
    @Security(value = {"lpw", "lpw1"})
    @RequestMapping(value = "/test")
    public String test1(String username, String password) {
        return "username = " + username + ", password = " + password;
    }
}
